<?php
namespace App\Services;

/**
 * 微信APP开发插件
 * @package App\Services
 */
class EasyWechat
{
    /**
     * 公众号操作对象
     * @return \EasyWeChat\OfficialAccount\Application
     */
    public static function officialAccount()
    {
        return \EasyWeChat::officialAccount();
    }

    /**
     * 企业微信
     * @return \EasyWeChat\Work\Application
     */
    public static function work()
    {
        $work = \EasyWeChat::work();
        return $work;
    }

    /**
     * 微信支付
     * @return \EasyWeChat\Payment\Application
     */
    public static function payment()
    {
        $payment = \EasyWeChat::payment();
        return $payment;
    }

    /**
     * 开放平台
     * @return \EasyWeChat\OpenPlatform\Application
     */
    public static function openPlatform()
    {
        $openPlatform = EasyWeChat::openPlatform();
        return $openPlatform;
    }

    /**
     * 小程序
     * @return \EasyWeChat\MiniProgram\Application
     */
    public static function miniProgram()
    {
        $miniProgram = EasyWeChat::miniProgram();
        return $miniProgram;
    }
}